-- card: 6182 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 2764 -- name: -- part 2 (button) -- low flags: 00 -- high flags: A003 -- rect: left=248 top=60 right=84 bottom=330 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: TryMe ----- HyperTalk script ----- on mouseUp put bkgnd field "examples" into t printtext t,"London",18,"o","true","true","c" end mouseUp -- part contents for background part 17 ----- text ----- PrintText (HardCopy) -- part contents for background part 18 ----- text ----- Gary Bond -- part contents for background part 19 ----- text ----- XCMD -- part contents for background part 20 ----- text ----- PrintText "Text" [,"FontName",FontSize,"FontStyle", "PageNumbers","Dialog" ,"Justification"] -- part contents for background part 21 ----- text ----- Ever wanted to print the contents of a field? Well, now you can with the xcmd. The only required parameter is the text to be printed. Optional parameters are: Fontname: The name of the font you want to use. The default is Monaco. Fontsize: The size of the font. The default is 9 point. Fontstyle: The style of the font. Choose from "plain", "bold","italic","outline", "underline", "shadow", "condensed", or "extended". (Or just "p","b","i","o","u","s","c" or "e"). The default is plain. PageNumbers: Use "PageNumbers" or "True" (or "P" or "T") to print the page number on the paper. The default is "False". Dialog: Use "Dialog", "D", "True" or "T" for the Printing dialog. The default is false. Justification: Use "Left" for left justification, "Right" for right, and "Center" for centered text. (Or "L","R" or "C"). The default is "Left". Gary Bond originally wrote this as HardCopy, but I have made a few minor changes (for the better), so I am calling it PrintText. -- part contents for background part 23 ----- text ----- put bkgnd field 1 into t printfield t printfield t,"Chicago",12,bold,true,Dialog printfield t,"Monaco",9,underline